package com.dragon.modules.yuegou.model.marketing;

import com.dragon.modules.yuegou.entity.marketing.ActivitySpuRefEntity;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * 活动奖品表模型类
 * 
 * @author pbuilder generated
 * @date 2019-08-07 13:55:36
 * @company sgy
 * @version 2.0
 * @see Length 长度限制
 * @see NotNull 对象非空
 * @see NotEmpty 字符串、集合、表、数组非空
 */
public class ActivitySpuRef extends ActivitySpuRefEntity {

	/**
	 * 构造一个空活动奖品表模型对象
	 */
	public ActivitySpuRef(){
		super();
	}
	
	/**
	 * 依据实体对象的信息构造一个活动奖品表模型对象
	 * 
	 * @param entity 实体对象
	 */
	public ActivitySpuRef(ActivitySpuRefEntity entity){
		super(entity);
	}

	/**
	 * 依据其它对象的信息构造一个活动奖品表模型对象
	 * 
	 * @param other 其它对象
	 */
	public ActivitySpuRef(ActivitySpuRef other){
		super(other);
	}


	@Override
	public String getId() {
    	return id;
    }

    /**
	 * 设置
	 * 
	 * @param id 
	 * @return 当前对象
	 */
    public ActivitySpuRef id(String id) {
    	this.id = id;
    	return this;
    }

	@Override
	public String getBusdId() {
    	return busdId;
    }

    /**
	 * 设置商圈id
	 * 
	 * @param busdId 商圈id
	 * @return 当前对象
	 */
    public ActivitySpuRef busdId(String busdId) {
    	this.busdId = busdId;
    	return this;
    }

	@Override
	public String getTitle() {
    	return title;
    }

    /**
	 * 设置奖品标题
	 * 
	 * @param title 奖品标题
	 * @return 当前对象
	 */
    public ActivitySpuRef title(String title) {
    	this.title = title;
    	return this;
    }

	@Override
	public String getSkuId() {
    	return skuId;
    }

    /**
	 * 设置商品id
	 * 
	 * @param skuId 商品id
	 * @return 当前对象
	 */
    public ActivitySpuRef skuId(String skuId) {
    	this.skuId = skuId;
    	return this;
    }

	@Override
	public String getActivityId() {
    	return activityId;
    }

    /**
	 * 设置活动id
	 * 
	 * @param activityId 活动id
	 * @return 当前对象
	 */
    public ActivitySpuRef activityId(String activityId) {
    	this.activityId = activityId;
    	return this;
    }

	@Override
	public String getSpuTitle() {
    	return spuTitle;
    }

    /**
	 * 设置商品名称
	 * 
	 * @param spuTitle 商品名称
	 * @return 当前对象
	 */
    public ActivitySpuRef spuTitle(String spuTitle) {
    	this.spuTitle = spuTitle;
    	return this;
    }

	@Override
	public Integer getAmount() {
    	return amount;
    }

    /**
	 * 设置奖品数量
	 * 
	 * @param amount 奖品数量
	 * @return 当前对象
	 */
    public ActivitySpuRef amount(Integer amount) {
    	this.amount = amount;
    	return this;
    }

	@Override
	public BigDecimal getRate() {
    	return rate;
    }

    /**
	 * 设置中奖概率
	 * 
	 * @param rate 中奖概率
	 * @return 当前对象
	 */
    public ActivitySpuRef rate(BigDecimal rate) {
    	this.rate = rate;
    	return this;
    }
}
